package services;

import models.SystemGrid;
import models.mappers.GridMapper;
import models.mappers.UserMapper;

import org.apache.ibatis.session.SqlSession;

import com.aton.db.SessionFactory;

public class GridService {
	
	 
	public static SystemGrid getGrid(String id) {
		SqlSession ss = SessionFactory.getSqlSession();
	     try {
	         GridMapper mapper = ss.getMapper(GridMapper.class);
	         return mapper.getGrid(id);
	     } finally {
	         ss.close();
	     }
	}
}
